Skip to content

feat: expose --exclude-dynamic-system-prompt-sections#55

Open
paperview wants to merge 1 commit into
guess:mainfrom
paperview:feature/exclude-dynamic-system-prompt-sections
Open

feat: expose --exclude-dynamic-system-prompt-sections#55
paperview wants to merge 1 commit into
guess:mainfrom
paperview:feature/exclude-dynamic-system-prompt-sections

Conversation

@paperview

Copy link
Copy Markdown
Contributor

Add the :exclude_dynamic_system_prompt_sections boolean option and plumb it through to the CLI's --exclude-dynamic-system-prompt-sections flag. The flag moves per-machine sections (cwd, env info, memory paths, git status) out of the system prompt and into the first user message, improving prompt-cache reuse across sessions that share a project.

Only applies with the default system prompt (ignored when :system_prompt is set) — matches the CLI's own semantics.

Follows the existing boolean-flag pattern used by
:include_partial_messages / :replay_user_messages, so the CLI conversion + tests read identically.

Add the :exclude_dynamic_system_prompt_sections boolean option and
plumb it through to the CLI's --exclude-dynamic-system-prompt-sections
flag. The flag moves per-machine sections (cwd, env info, memory
paths, git status) out of the system prompt and into the first
user message, improving prompt-cache reuse across sessions that
share a project.

Only applies with the default system prompt (ignored when
:system_prompt is set) — matches the CLI's own semantics.

Follows the existing boolean-flag pattern used by
:include_partial_messages / :replay_user_messages, so the CLI
conversion + tests read identically.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant